import React, {FC} from 'react';
import "./index.less";
import {GetProps, Radio} from "antd";
import classNames from "classnames";

type HxButtonRadioGroupProps = Omit<GetProps<typeof Radio.Group>, "optionType"> & {}


const HxButtonRadioGroup: FC<HxButtonRadioGroupProps> = (props) => {
    const {className, buttonStyle = "solid", ...rest} = props;
    return (
        <Radio.Group {...rest}
                     className={classNames("hx-button-radio-group-container", className)}
                     buttonStyle={buttonStyle}
                     optionType={"button"}
        />
    );
};

export default HxButtonRadioGroup;